home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
gnuish
/
gmake371
/
msdos-g2.sed
< prev
next >
Wrap
Text File
|
1994-05-29
|
2KB
|
44 lines
# -----------------------------------------------------------------------------
# Script for `sed' to convert makefile.in into makefile for Gnu CC
# -----------------------------------------------------------------------------
1i\
# Generated automatically from makefile.in by configure.bat.
/^VPATH *=/d
/^srcdir *=/s/@[A-Za-z_]*@/./
/^CFLAGS *=/s/@[A-Za-z_]*@/-O2 -g/
/^LDFLAGS *=/s/@[A-Za-z_]*@//
/^defines *=/s/-D.*$//
/^defines *=/s/@[A-Za-z_]*@/-DNO_FLOAT/
/^REMOTE *=/s/@[A-Za-z_]*@/stub/
/^CC *=/s!@[A-Za-z_]*@!gcc!
/^RANLIB *=/s!@[A-Za-z_]*@!ranlib!
/^ALLOCA *=/s/@[A-Za-z_]*@//
/^LOADLIBES *=/s/@[A-Za-z_]*@//
/^extras *=/s/@[A-Za-z_]*@/dosstuff.o spawn.o/
/^prefix *=/s/=.*$/= ./
/^SHELL *=/s/^/# /
/^@SET_MAKE@$/s/^/# /
/^ -rm *-f */s/ make / make*.exe /
/^make:/,/^$/s/-o make\.new/-o makegcc/
/^make:/,/^$/s/mv -f make\.new make$/coff2exe makegcc/
/^stamp-config:/,/^$/s/\$(SHELL)/rem/
/^glob-clean.*:/,/^$/s/cd glob; *\$(MAKE)/$(MAKE) -C glob/
/^glob.libglob\.a:/,/libglob\.a$/s/^ .*$//
/^glob.libglob\.a:/,/^$/s!cd glob; .*$!cd glob\
$(MAKE) "CC=$(CC)" "CFLAGS='$(CFLAGS)'" libglob.a\
cd ..!
/^\.c\.o:$/,/^$/s/ *\$(OUTPUT_OPTION)//
# Take care of double dot file names
s/config\.h.\in/config.h-in/g
/^ -rm /s/\*\.o/*.o *.obj/
# Fix dependencies:
/^dir\.o *:/s/ *$/ dosstuff.h/
/^main\.o *:/s/ *$/ dosstuff.h/
/^job\.o *:/s/ *$/ dosstuff.h/
$a\
dosstuff.o : dosstuff.c dosstuff.h pwd.h\
spawn.o : spawn.c make.h variable.h dep.h file.h dosstuff.h